﻿<div class="blade-static __bottom" ng-include="'$(Platform)/Scripts/common/templates/ok-cancel2.tpl.html'"></div>
<div class="blade-content">
    <div class="blade-inner">
        <div class="inner-block clearfix">
            <div class="form-group">
                <label class="form-label">Is active</label>
                <div class="form-input">
                    <label class="form-label __switch">
                        <input type="checkbox" ng-model="blade.currentEntity.isActive" />
                        <span class="switch"></span>
                    </label>
                </div>
            </div>
            <div class="columns">
                <div class="column">
                    <ul class="list __info">
                        <li class="list-item">
                            <div class="list-t">Name</div>
                            <div class="list-descr">{{blade.currentEntity.name}}</div>
                        </li>
                    </ul>
                </div>
                <div class="column">
                    <ul class="list __info">
                        <li class="list-item">
                            <div class="list-t">Code</div>
                            <div class="list-descr">{{blade.currentEntity.code}}</div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="form-group">
                <label class="form-label">Tax type <a href="" ng-click="openDictionarySettingManagement()" va-permission="platform:setting:update"><i class="form-ico fa fa-pencil"></i></a></label>
                <div class="form-input">
                    <ui-select ng-model="blade.currentEntity.taxType">
                        <ui-select-match allow-clear="true" placeholder="Select...">{{$select.selected}}</ui-select-match>
                        <ui-select-choices repeat="x in taxTypes | filter: $select.search">
                            <span ng-bind-html="x | highlight: $select.search"></span>
                        </ui-select-choices>
                    </ui-select>
                </div>
            </div>
            <form class="form" name="detailForm">
                <fieldset>
                    <div class="form-group" ng-init="setForm(detailForm)">
                        <label class="form-label">Description</label>
                        <div class="form-input">
                            <textarea class="form-control" ng-model="blade.currentEntity.description" placeholder="Enter description"></textarea>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Settings</legend>
                    <ul class="list __info">
                        <li class="list-item" ng-repeat="data in blade.currentEntity.settings">
                            <label class="form-label">{{data.title}}</label>
                            <va-generic-value-input ng-model="data" ng-if="!data.isArray" get-dictionary-values="getDictionaryValues" />
                            <div class="list-descr">{{data.description}}</div>
                        </li>
                    </ul>
                </fieldset>
            </form>

            <!--gridster-opts="{width: 526}"-->
            <va-widget-container group="shippingMethodDetail" blade="blade"></va-widget-container>
        </div>
    </div>
</div>